<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="manage" tagdir="/WEB-INF/tags" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set var="url" value="${pageContext.request.contextPath}/delivery/page.do?${pageControl.appendParams}"/>
<c:set var="urlAll" value="${pageContext.request.contextPath}/delivery/all.do?${pageControl.appendParams}"/>
<manage:page title="配送订单查询">
    <jsp:attribute name="css">

    </jsp:attribute>
     <jsp:attribute name="script">
        <script>
        </script>
</jsp:attribute>
    <jsp:body>
        <div class="ui container">
            <br>
            <div class="ui breadcrumb">
                <a class="ui blue ribbon label" href="/upgrade/list.do">版本升级管理</a>
            </div>
            <sec:authorize access="hasRole('OPT_UPGRADE_ADD')">
                <div class="pull-right">
                    <a href="${pageContext.request.contextPath}/upgrade/add.do" class="ui tiny primary button">
                    <i class="ui icon plus"></i>
                    <span>新增</span>
                    </a>
                </div>
            </sec:authorize>
<br><br>IOS: <c:if test="${not empty ios}">
                <table class="ui striped table celled">
                    <tr>
                        <th>类型</th>
                        <th>是否抢先版</th>
                        <th>版本</th>
                        <th>是否强制升级</th>
                        <th>URL</th>
                        <th>md5</th>
                        <th>描述</th>
                        <th>操作</th>
                    </tr>
                    <c:forEach items="${ios}" var="upgrade" varStatus="status">
                        <tr class="r${status.count%2}">
                            <td>${upgrade.os}</td>
                            <td>${upgrade.inhouse}</td>
                            <td>${upgrade.version}</td>
                            <td>${upgrade.force}</td>
                            <td>${upgrade.url}</td>
                            <td>${upgrade.md5}</td>
                            <td>
                                <pre>${upgrade.info}</pre>
                            </td>
                            <td>
                                <a class="delete-btn" href="${pageContext.request.contextPath}/upgrade/delete.do?id=${upgrade.id}">
                                    <i class="minus circle icon"></i></i><span>禁用</span>
                                </a>
                            </td>
                        </tr>
                    </c:forEach>
                </table>
            </c:if>
            AndroId:
            <c:if test="${not empty androId}">
                <table class="ui striped table celled">
                    <tr>
                        <th>类型</th>
                        <th>是否抢先版</th>
                        <th>版本</th>
                        <th>是否强制升级</th>
                        <th>URL</th>
                        <th>md5</th>
                        <th>描述</th>
                        <th>操作</th>
                    </tr>
                    <c:forEach items="${androId}" var="upgrade" varStatus="status">
                        <tr class="r${status.count%2}">
                            <td>${upgrade.os}</td>
                            <td>${upgrade.inhouse}</td>
                            <td>${upgrade.version}</td>
                            <td>${upgrade.force}</td>
                            <td>${upgrade.url}</td>
                            <td>${upgrade.md5}</td>
                            <td>
                                <pre>${upgrade.info}</pre>
                            </td>
                            <td>
                                <a class="delete-btn" href="${pageContext.request.contextPath}/upgrade/delete.do?id=${upgrade.id}">
                                    <i class="minus circle icon"></i></i><span>禁用</span>
                                </a>
                            </td>
                        </tr>
                    </c:forEach>
                </table>
            </c:if>
            </td>
            </tr>
            <tr>
                <td valign="bottom">
                    <c:import url="/WEB-INF/views/manage/common/footer.jsp"/>
                </td>
            </tr>
            </table>
        </div>
    </jsp:body>
</manage:page>